package demo3;

public class Duck implements IRunable, IFlyable, ISwimable{
    public String name;

    public Duck(String name) {
        this.name = name;
    }

    public void run() {
        System.out.println(this.name + "正在跑===");
    }

    public void fly() {
        System.out.println(this.name + "正在飞====");
    }

    public void swim() {
        System.out.println(this.name + "正在游泳===");
    }
}
